/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package layoutitems;

import folder.helper.Folders;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;

/**
 *
 * @author ST
 */
public class LayoutElements {
    //############################
    //      Fields                  
    //############################
    private static FileWriter out;
    public static ArrayList<ImageElement> standardElements;
    
    //############################
    //      Methods                  
    //############################
    
    public static void writeStandardLayoutElementsXml() throws IOException {
        out = new FileWriter(new File(Folders.element_Listings, "Standard_Element_Listing.xml"), false);
        out.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<root>\n");
        for (ImageElement item : LayoutElements.standardElements) {
            out.write(item.writeLayoutElementAsXml());
        }
        out.write("</root>");
        out.close();
    }
}
